﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml;
using App1AppHandler;

namespace Reborn_WorldServer.App1AppHandler
{
    //This subclass simply adds a value to store the characters qty on hand (available)
    public class RecipieItemData : RecipieItem
    {
        public int avail;

        public override void writeXmlAttributes(XmlTextWriter xmldoc, Character sendingToCharacter)
        {
            base.writeXmlAttributes(xmldoc, sendingToCharacter);

            //Add additional value
            xmldoc.WriteAttributeString("avail", avail.ToString());
        }
        public override void writeXmlElements(XmlTextWriter xmldoc, Character sendingToCharacter)
        {
            //No additional data in this subclass, just run base.
            base.writeXmlElements(xmldoc, sendingToCharacter);
        }
    }
}
